﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WpfClient.Content
{
    /// <summary>
    /// ImageWindow.xaml 的交互逻辑
    /// </summary>
    public partial class ImageWindow : Window
    {
        public ImageWindow()
        {
            InitializeComponent();

            // 1
            ////BitmapImage BitmapSource ImageSource
            //ImageSource imgSrc = new BitmapImage(new Uri(System.IO.Path.Combine(System.Environment.GetEnvironmentVariable("windir"), "Gone Fishing.bmp")));

            //Image img = new Image();
            //img.Source = imgSrc;

            //this.Content = img;
            //img.LayoutTransform = new RotateTransform(45);

            //img.Opacity = 1;// 表示此元素不透明
            //this.Background = new LinearGradientBrush(Colors.Red, Colors.Blue, new Point(0, 0), new Point(1, 1));

            Ellipse ellipse = new Ellipse();
            ellipse.Fill = Brushes.AliceBlue;
            ellipse.StrokeThickness = 24;
            ellipse.Stroke = new LinearGradientBrush(Colors.CadetBlue, Colors.Chocolate, new Point(1, 0), new Point(0, 1));

            this.Content = ellipse;


        }
    }
}
